package com.project.bean;

import java.time.LocalDate;

public class UserBean {
    //用户id
    private Integer id;
    //用户名
    private String name;
    //用户密码
    private String password;
    //用户生日
    private LocalDate date;
    //用户等级
    private String garde;

    public UserBean() {
    }

    public UserBean(String name, String password, LocalDate date, String garde) {
        this.name = name;
        this.password = password;
        this.date = date;
        this.garde = garde;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getGarde() {
        return garde;
    }

    public void setGarde(String garde) {
        this.garde = garde;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", date=" + date +
                ", garde='" + garde + '\'' +
                "}\n";
    }
}
